package com.qcs.sleep.warn.action;

import android.content.Intent;

import com.jqing.lib.print.Print;
import com.qcs.sleep.call.ActionWatcher;

/**
 * Created by chshqiang on 15-7-25.
 * 锁屏动作监听
 */
public abstract class ScreenOffWatcher extends ActionWatcher {
    @Override
    public void update(String action) {
        Print.m("this is action " + action);
        if (Intent.ACTION_SCREEN_OFF.equals(action)) {
            onScreenOff();
        }
    }

    protected abstract void onScreenOff();
}
